package com.product.android.commonInterface.weibo;

import org.json.JSONException;
import org.json.JSONObject;

public class CommonFriendInfo {
	
	public long uid = 0;
	
	public String nickName = "";
	
	//大等0，表示当前用户与该用户存在 data 个共同好友；等于-1，表示当前用户与该用户为同班同学；
	public int data = 0;
	
	public void LoadFromJson(JSONObject json){
		try {
			uid = json.getLong("uid");
			data = json.getInt("data");
			nickName = json.getString("nickname");
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

}
